public class Text {
    public static void main(String[] args) {
       Phone phone1 = new Phone();
        phone1.setMoney(4899);
        phone1.brand="诺基亚";
        Phone phone2 = new Phone();
        phone1=phone2;  //p1的money=4899,brand="诺基亚"
        phone2.brand="苹果";
        phone2.setMoney(499);
        System.out.println("这个"+phone2.brand+"手机卖"+phone1.getMoney()+"元");
        System.out.println("这个"+phone1.brand+"手机卖"+phone2.getMoney()+"元");

    }
}
